package com.dhh.rxwebsocket;

import android.os.Parcel;
import android.os.Parcelable;

public class LoginBean implements Parcelable {


    /**
     * mobile : {"state":"","numbers":"17710948188"}
     * pswd : 09876543
     */

    private MobileBean mobile;
    private String pswd;

    public LoginBean() {
    }

    protected LoginBean(Parcel in) {
        pswd = in.readString();
    }

    public static final Creator<LoginBean> CREATOR = new Creator<LoginBean>() {
        @Override
        public LoginBean createFromParcel(Parcel in) {
            return new LoginBean(in);
        }

        @Override
        public LoginBean[] newArray(int size) {
            return new LoginBean[size];
        }
    };

    public MobileBean getMobile() {
        return mobile;
    }

    public void setMobile(MobileBean mobile) {
        this.mobile = mobile;
    }

    public String getPswd() {
        return pswd;
    }

    public void setPswd(String pswd) {
        this.pswd = pswd;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(pswd);
    }

    public static class MobileBean {
        /**
         * state :
         * numbers : 17710948188
         */

        private String state;
        private String numbers;

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public String getNumbers() {
            return numbers;
        }

        public void setNumbers(String numbers) {
            this.numbers = numbers;
        }
    }
}
